<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh">
<!--<![endif]-->
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>

<head>
    <meta charset="utf-8"/>
    <title>保险代理后台管理系统</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/>
    <meta content="" name="description"/>
    <meta content="" name="author"/>
    <!-- ================== BEGIN BASE CSS STYLE ================== -->
    <jsp:include page="../common/header.jsp"/>
    <%@include file="../common/taglib.jsp" %>
    <style>
        .control-label {
            width: 170px;
        }
        tr td:first-child{
            text-align: center;
        }
        .col-md-9 {
            width: 300px;
        }
        .pager.bwizard-buttons{margin-left:185px; }
    </style>
    <!-- ================== END BASE CSS STYLE ================== -->

    <!-- ================== 单独作用于本页表格td ================== -->
    <!-- ================== 单独作用于本页表格td ================== -->

</head>
<body>
<!-- begin #page-loader -->
<div id="page-loader" class="fade in"><span class="spinner"></span></div>
<!-- end #page-loader -->

<!-- begin #page-container -->
<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
    <jsp:include page="../common/top.jsp"/>

    <!-- begin #sidebar -->
    <jsp:include page="../common/sitebar.jsp"/>
    <div class="sidebar-bg"></div>
    <!-- end #sidebar -->

    <!-- begin #content -->
    <div id="content" class="content">
        <div class="row">
            <!-- begin col-12 -->
            <div class="col-md-12">
                <!-- begin panel -->
                <div class="panel panel-inverse">


                    <!-- 以下只是为了权限判断 -->
                    <div class="form-group hidden">
                        <div class="form-control">
                            <!-- 公司渠道编辑 -->
                            <shiro:hasPermission name="channel:company:edit">
                                <input type="hidden" name="hasPermissionChannelCompanyEdit" value="1">
                            </shiro:hasPermission>
                            <shiro:lacksPermission name="channel:company:edit">
                                <input type="hidden" name="hasPermissionChannelCompanyEdit" value="0">
                            </shiro:lacksPermission>

                            <!-- 公司渠道删除 -->
                            <shiro:hasPermission name="channel:company:delete">
                                <input type="hidden" name="hasPermissionChannelCompanyDelete" value="1">
                            </shiro:hasPermission>
                            <shiro:lacksPermission name="channel:company:delete">
                                <input type="hidden" name="hasPermissionChannelCompanyDelete" value="0">
                            </shiro:lacksPermission>

                            <!-- 公司渠道 新建、编辑审核 -->
                            <shiro:hasPermission name="channel:company:create_audit">
                                <input type="hidden" name="hasPermissionChannelCompanyCreateAudit" value="1">
                            </shiro:hasPermission>
                            <shiro:lacksPermission name="channel:company:create_audit">
                                <input type="hidden" name="hasPermissionChannelCompanyCreateAudit" value="0">
                            </shiro:lacksPermission>

                            <!-- 公司渠道授信申请 -->
                            <shiro:hasPermission name="channel:company:credit_apply">
                                <input type="hidden" name="hasPermissionChannelCompanyCreditApply" value="1">
                            </shiro:hasPermission>
                            <shiro:lacksPermission name="channel:company:credit_apply">
                                <input type="hidden" name="hasPermissionChannelCompanyCreditApply" value="0">
                            </shiro:lacksPermission>


                            <!-- 公司渠道授信初审 -->
                            <shiro:hasPermission name="channel:company:credit_first">
                                <input type="hidden" name="hasPermissionChannelCompanyCreditFirst" value="1">
                            </shiro:hasPermission>
                            <shiro:lacksPermission name="channel:company:credit_first">
                                <input type="hidden" name="hasPermissionChannelCompanyCreditFirst" value="0">
                            </shiro:lacksPermission>


                            <!-- 公司渠道授信终审 -->
                            <shiro:hasPermission name="channel:company:credit_last">
                                <input type="hidden" name="hasPermissionChannelCompanyCreditLast" value="1">
                            </shiro:hasPermission>
                            <shiro:lacksPermission name="channel:company:credit_last">
                                <input type="hidden" name="hasPermissionChannelCompanyCreditLast" value="0">
                            </shiro:lacksPermission>


                            <!-- 公司渠道授信上传合同 -->
                            <shiro:hasPermission name="channel:company:upload_contract">
                                <input type="hidden" name="hasPermissionChannelCompanyUploadContract" value="1">
                            </shiro:hasPermission>
                            <shiro:lacksPermission name="channel:company:upload_contract">
                                <input type="hidden" name="hasPermissionChannelCompanyUploadContract" value="0">
                            </shiro:lacksPermission>

                            <!-- 公司渠道授信分控复核 -->
                            <shiro:hasPermission name="channel:company:credit_review">
                                <input type="hidden" name="hasPermissionChannelCompanyCreditReview" value="1">
                            </shiro:hasPermission>
                            <shiro:lacksPermission name="channel:company:credit_review">
                                <input type="hidden" name="hasPermissionChannelCompanyCreditReview" value="0">
                            </shiro:lacksPermission>

                            <!-- 公司渠道授信保证金确认 -->
                            <shiro:hasPermission name="channel:company:deposit_ensure">
                                <input type="hidden" name="hasPermissionChannelCompanyDepositEnsure" value="1">
                            </shiro:hasPermission>
                            <shiro:lacksPermission name="channel:company:deposit_ensure">
                                <input type="hidden" name="hasPermissionChannelCompanyDepositEnsure" value="0">
                            </shiro:lacksPermission>

                            <!-- 公司渠道授信补齐保证金 -->
                            <shiro:hasPermission name="channel:company:deposit_supplement">
                                <input type="hidden" name="hasPermissionChannelCompanyDepositSupplement" value="1">
                            </shiro:hasPermission>
                            <shiro:lacksPermission name="channel:company:deposit_supplement">
                                <input type="hidden" name="hasPermissionChannelCompanyDepositSupplement" value="0">
                            </shiro:lacksPermission>


                            <!-- 是否渠道用户， 是的话不显示查询框 和 渠道详情操作记录 -->
                            <shiro:hasRole name="渠道">
                                <input type="hidden" name="hasRoleChannel" value="1">
                            </shiro:hasRole>
                            <shiro:lacksRole name="渠道">
                                <input type="hidden" name="hasRoleChannel" value="0">
                            </shiro:lacksRole>


                            <!-- 是否公司渠道tab权限 -->
                            <shiro:hasPermission name="channel:company:tab">
                                <input type="hidden" name="hasPermissionChannelCompanyTab" value="1">
                            </shiro:hasPermission>
                            <shiro:lacksPermission name="channel:company:tab">
                                <input type="hidden" name="hasPermissionChannelCompanyTab" value="0">
                            </shiro:lacksPermission>


                            <!-- 是否个人渠道tab权限 -->
                            <shiro:hasPermission name="channel:personal:tab">
                                <input type="hidden" name="hasPermissionChannelPersonalTab" value="1">
                            </shiro:hasPermission>
                            <shiro:lacksPermission name="channel:personal:tab">
                                <input type="hidden" name="hasPermissionChannelPersonalTab" value="0">
                            </shiro:lacksPermission>


                            <!-- 以下两个只是为了传参 -->
                            <input type="text" id="nodeIdInput" name="nodeId" value="${nodeId}">
                            <input type="text" id="businessIdInput" name="businessIdInput" value="${businessId}">

                            <!-- types C 默认显示公司渠道  P 默认显示个人渠道 -->
                            <input type="text" id="whichTypeInput" name="whichTab" value="${types}">

                            <!-- 渠道用户的话，1.个人渠道 2.公司渠道 -->
                            <input type="text" id="channelTypeInput" name="channelTypeInput" value="${channelType}">

                        </div>
                    </div>


                    <section class="pad-top-10 pad-bottom-20">
                        <ul id="myTab" class="nav nav-tabs">

                            <li id="firstTab" class="active" onclick="showChannel(2)">
                                <shiro:hasPermission name="channel:company:tab">
                                    <a href="#tab1"  data-toggle="tab">公司渠道</a>
                                </shiro:hasPermission>
                            </li>
                            <li id="secondTab" onclick="showChannel(1)">
                                <shiro:hasPermission name="channel:personal:tab">
                                    <a href="#tab2" data-toggle="tab">个人渠道</a>
                                </shiro:hasPermission>
                            </li>
                            <li>
                                <shiro:hasPermission name="channel:create:tab">
                                    <a href="#tab3"  data-toggle="tab">新建渠道</a>
                                </shiro:hasPermission>
                            </li>
                            <li><a href="#tab4"  data-toggle="tab" class="hidden"  id="navTab4">测试</a></li>
                            <li class="hidden"><a href="#tab5"  data-toggle="tab">渠道审核</a></li>
                            <li class="hidden"><a href="#tab6"  data-toggle="tab">渠道详情</a></li>
                            <li><a href="#tab7"  data-toggle="tab" class="hidden" id="editTab">编辑渠道</a></li>


                        </ul>
                        <div class="form-wrap mar-bottom-0">
                            <div class="tab-content">
                                <div id="tab1" class="tab-pane fade active in">
                                    <section>

                                        <shiro:lacksRole name="渠道">
                                            <form class="form-inline">
                                                <div class="form-group">
                                                    <label>注册名称：</label>
                                                    <input type="text" class="form-control m-r-20" id="companyRegisterName"
                                                           style="width: 150px;">
                                                </div>
                                                <div class="form-group">
                                                    <label>公司联系人：</label>
                                                    <input type="text" class="form-control  m-r-20" id="companyName"
                                                           style="width: 150px;">
                                                </div>
                                                <div class="form-group">
                                                    <label>状态：</label>
                                                    <select id="status" name="status" class="form-control  m-r-10">
                                                        <option value="">-- 请选择 --</option>
                                                        <option value="1">审核中</option>
                                                        <option value="2">审核驳回</option>
                                                        <option value="3">审核通过</option>
                                                        <option value="4">授信审核中</option>
                                                        <option value="5">授信审核驳回</option>
                                                        <option value="6">已授信</option>
                                                    </select>
                                                </div>

                                                <button type="button" class="btn btn-primary" onclick="search1()">查询
                                                </button>
                                            </form>
                                        </shiro:lacksRole>
                                        <table id="modeltable" class="table table-striped table-bordered"
                                               style="word-break:break-all;word-wrap:break-word">
                                            <thead>
                                            <tr>
                                                <th width="8%">编号</th>
                                                <th width="8%">注册名称</th>
                                                <th width="8%">法人姓名</th>
                                                <th width="8%">注册时间</th>
                                                <th width="8%">营业期限</th>
                                                <th width="8%">公司联系人</th>
                                                <th width="10%">公司联系电话</th>
                                                <th width="8%">业务员</th>
                                                <th width="10%">授信金额（元）</th>
                                                <th width="10%">剩余授信金额（元）</th>
                                                <th width="10%">授信到期日</th>
                                                <th width="10%">应缴保证金（元）</th>
                                                <th width="10%">剩余保证金（元）</th>
                                                <th width="8%">状态</th>
                                                <th width="18%">操作</th>
                                            </tr>
                                            </thead>

                                        </table>
                                    </section>
                                </div>
                                <div id="tab2" class="tab-pane fade">
                                    <section>
                                        <shiro:lacksRole name="渠道">
                                        <form class="form-inline">
                                            <div class="form-group">
                                                <label>姓名：</label>
                                                <input type="text" class="form-control m-r-20" id="name"
                                                       style="width: 150px;">
                                            </div>
                                            <div class="form-group">
                                                <label>工作单位：</label>
                                                <input type="text" class="form-control m-r-20" id="companyNamePre"
                                                       style="width: 150px;">
                                            </div>
                                            <div class="form-group">
                                                <label>状态：</label>
                                                <select id="status2" name="status" class="form-control  m-r-10">
                                                    <option value="">-- 请选择 --</option>
                                                    <option value="1">审核中</option>
                                                    <option value="2">审核驳回</option>
                                                    <option value="3">审核通过</option>
                                                </select>
                                            </div>
                                            <button type="button" class="btn btn-primary" onclick="search2()">查询</button>
                                        </form>
                                        </shiro:lacksRole>
                                        <table id="modeltable2" class="table table-striped table-bordered"
                                               style="word-break:break-all;word-wrap:break-word">
                                            <thead>
                                            <tr>
                                                <th>编号</th>
                                                <th>姓名</th>
                                                <th>身份证号</th>
                                                <th>工作单位</th>
                                                <th>联系电话</th>
                                                <th>业务员</th>
                                                <th>状态</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>

                                        </table>
                                    </section>
                                </div>
                                <div id="tab3" class="tab-pane fade">
                                    <section class="pad-top-10 pad-bottom-20">

                                        <ul id="subTab" class="nav nav-pills" style="margin-left:15px;">
                                            <li><label>渠道类型：</label></li>
                                            <li class="active"><label class="radio-inline">
                                                <input type="radio" value="2" name="companyRadio" checked="checked"
                                                       onclick="showSubChannel(2)">公司
                                            </label>&nbsp;&nbsp;
                                            </li>
                                            <li><label class="radio-inline">
                                                <input type="radio" value="1" name="companyRadio"
                                                       onclick="showSubChannel(1)">个人
                                            </label></li>
                                        </ul>
                                        <div class="form-wrap mar-bottom-0">
                                            <div class="tab-content" style="padding-top: 0">
                                                <div id="subTab1" class="tab-pane fade active in">
                                                    <section>
                                                        <div>
                                                            <form action="/channel/saveChannel" method="POST"
                                                                  data-parsley-validate="true" name="form-wizard"
                                                                  enctype="multipart/form-data" class="form-horizontal" id="form1">
                                                                <input type="hidden" value="2" name="type">
                                                                <div id="wizard">
                                                                    <ol>
                                                                        <li>
                                                                            公司工商信息
                                                                            <small></small>
                                                                        </li>
                                                                        <li>
                                                                            账户信息
                                                                            <small></small>
                                                                        </li>
                                                                        <li>
                                                                            附件
                                                                            <small></small>
                                                                        </li>
                                                                        <li>
                                                                            完成
                                                                            <small></small>
                                                                        </li>
                                                                    </ol>
                                                                    <!-- begin wizard step-1 -->
                                                                    <div class="wizard-step-1">
                                                                        <fieldset>
                                                                            <%--<legend class="pull-left width-full">Identification</legend>--%>
                                                                            <!-- begin row -->
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">注册名称：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="companyRegisterName"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-companyname="true"
                                                                                           data-parsley-group="wizard-step-1"
                                                                                           data-parsley-required-message="请输入注册名称"
                                                                                           data-parsley-companyname-message="注册名称填写有误,请重新填写"
                                                                                           data-parsley-maxlength="50"
                                                                                           maxlength="50"
                                                                                           data-parsley-maxlength-message="注册名称最长为50个字符"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">企业信用统一代码：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="creditCode"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-creditcode="true"
                                                                                           data-parsley-group="wizard-step-1"
                                                                                           data-parsley-required-message="请输入企业信用统一代码"
                                                                                           data-parsley-creditcode-message="企业信用统一代码填写有误,请重新填写"
                                                                                           data-parsley-maxlength="18"
                                                                                           maxlength="18"
                                                                                           data-parsley-maxlength-message="企业信用统一代码最长为18位"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">注册时间：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control selectData"
                                                                                           name="companyRegisterDate"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-required-message="请输入注册时间"
                                                                                           data-parsley-group="wizard-step-1"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">营业期限：</label>
                                                                                <div class="col-md-3"
                                                                                     style="width: 140px;">
                                                                                    <input type="text"
                                                                                           class="form-control selectData"
                                                                                           name="businessStartDate"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-required-message="请输入营业期限"
                                                                                           data-parsley-group="wizard-step-1"/>
                                                                                </div>
                                                                                <label class="col-md-1 text-center"
                                                                                       style="width: 32px;margin-top:6px;margin-left:-10px;  position: relative; left: -2px;">至</label>
                                                                                <div class="col-md-3"
                                                                                     style="width: 140px;">
                                                                                    <input type="text"
                                                                                           class="form-control selectData"
                                                                                           name="businessEndDate"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-required-message="请输入营业期限"
                                                                                           data-parsley-group="wizard-step-1"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">法人姓名：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="legalPerson.name"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-legalpersonname="true"
                                                                                           data-parsley-group="wizard-step-1"
                                                                                           data-parsley-required-message="请输入法人姓名"
                                                                                           data-parsley-legalpersonname-message="法人姓名填写有误,请重新填写"
                                                                                           data-parsley-maxlength="24"
                                                                                           maxlength="24"
                                                                                           data-parsley-maxlength-message="法人姓名最长为24个字符"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">法人身份证号：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="legalPerson.idNo"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-legalpersonidno="true"
                                                                                           data-parsley-group="wizard-step-1"
                                                                                           data-parsley-required-message="请输入法人身份证号"
                                                                                           data-parsley-legalpersonidno-message="身份证号填写有误,请重新填写"
                                                                                           data-parsley-maxlength="18"
                                                                                           maxlength="18"
                                                                                           data-parsley-maxlength-message="法人身份证号最长为18位"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">法人手机号：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="legalPerson.mobile"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-legalpersonmobile="true"
                                                                                           data-parsley-group="wizard-step-1"
                                                                                           data-parsley-required-message="请输入法人手机号"
                                                                                           data-parsley-legalpersonmobile-message="手机号填写有误,请重新填写"
                                                                                           data-parsley-maxlength="11"
                                                                                           maxlength="11"
                                                                                           data-parsley-maxlength-message="法人手机号最长为11位"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">公司联系人：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           maxlength="24"
                                                                                           name="contact.name"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-legalpersonname="true"
                                                                                           data-parsley-required-message="请输入公司联系人"
                                                                                           data-parsley-legalpersonname="true"
                                                                                           data-parsley-legalpersonname-message="公司联系人姓名填写有误,请重新填写"
                                                                                           data-parsley-maxlength="24"
                                                                                           data-parsley-maxlength-message="联系人最长为24个字符"
                                                                                           data-parsley-group="wizard-step-1"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">联系人电话：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="contact.telephone"
                                                                                           maxlength="13"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-telephone="true"
                                                                                           data-parsley-telephone-message="电话号码填写有误,请重新填写"
                                                                                           data-parsley-required-message="请输入联系人电话"
                                                                                           data-parsley-maxlength="13"
                                                                                           data-parsley-maxlength-message="联系人电话最长为13位"
                                                                                           data-parsley-group="wizard-step-1"
                                                                                           />
                                                                                </div>
                                                                            </div>
                                                                            <%--<div class="row">
                                                                                <!-- begin col-4 -->
                                                                                <div class="col-md-4">
                                                                                    <div class="form-group block1">
                                                                                        <label>First Name</label>
                                                                                        <input type="text" name="firstname" placeholder="John" class="form-control" data-parsley-group="wizard-step-1" required />
                                                                                    </div>
                                                                                </div>
                                                                                <!-- end col-4 -->
                                                                                <!-- begin col-4 -->
                                                                                <div class="col-md-4">
                                                                                    <div class="form-group">
                                                                                        <label>Middle Initial</label>
                                                                                        <input type="text" name="middle" placeholder="A" class="form-control" data-parsley-group="wizard-step-1" required />
                                                                                    </div>
                                                                                </div>
                                                                                <!-- end col-4 -->
                                                                                <!-- begin col-4 -->
                                                                                <div class="col-md-4">
                                                                                    <div class="form-group">
                                                                                        <label>Last Name</label>
                                                                                        <input type="text" name="lastname" placeholder="Smith" class="form-control" data-parsley-group="wizard-step-1" required />
                                                                                    </div>
                                                                                </div>
                                                                                <!-- end col-4 -->
                                                                            </div>--%>
                                                                            <!-- end row -->
                                                                        </fieldset>
                                                                    </div>
                                                                    <!-- end wizard step-1 -->
                                                                    <!-- begin wizard step-2 -->
                                                                    <div class="wizard-step-2">
                                                                        <fieldset>
                                                                            <%--<legend class="pull-left width-full">Member Information</legend>--%>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">账户开户名：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="accountName"
                                                                                           maxlength="20"
                                                                                           data-parsley-accountname="true"
                                                                                           data-parsley-accountname-message="账户开户名填写有误,请重新填写"
                                                                                           data-parsley-maxlength="20"
                                                                                           data-parsley-maxlength-message="账户开户名最长为20个字符"
                                                                                           data-parsley-group="wizard-step-2"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">银行账号：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           id="companyaccountno"
                                                                                           name="accountNo"
                                                                                           maxlength="20"
                                                                                           data-parsley-accountno="true"
                                                                                           data-parsley-accountno-message="银行账号填写有误,请重新填写"
                                                                                           data-parsley-minlength="16"
                                                                                           data-parsley-minlength-message="银行账号最短为16位"
                                                                                           data-parsley-maxlength="20"
                                                                                           data-parsley-maxlength-message="银行账号最长为20位"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-required-message="请填写银行账号,支付宝,微信,其他任意一个"
                                                                                           data-parsley-unrequiredcompany="true"
                                                                                           data-parsley-unrequiredcompany-message="请填写银行账号,支付宝,微信,其他任意一个"
                                                                                           data-parsley-group="wizard-step-2"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">所属银行：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           maxlength="20"
                                                                                           data-parsley-bankname="true"
                                                                                           data-parsley-bankname-message="所属银行填写有误,请重新填写"
                                                                                           data-parsley-group="wizard-step-2"
                                                                                           name="bankName"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">开户支行：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="bankBranchName"
                                                                                           data-parsley-bankbranchname="true"
                                                                                           data-parsley-bankbranchname-message="开户支行填写有误,请重新填写"
                                                                                           maxlength="20"
                                                                                           data-parsley-group="wizard-step-2"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">支付宝账号：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="alipayNo"
                                                                                           id="companyalipayno"
                                                                                           maxlength="20"
                                                                                           data-parsley-alipayno="true"
                                                                                           data-parsley-alipayno-message="支付宝账号填写有误,请重新填写"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-required-message="请填写银行账号,支付宝,微信,其他任意一个"
                                                                                           data-parsley-unrequiredcompany="true"
                                                                                           data-parsley-unrequiredcompany-message="请填写银行账号,支付宝,微信,其他任意一个"
                                                                                           data-parsley-group="wizard-step-2"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">微信账号：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           maxlength="20"
                                                                                           id="companywechatno"
                                                                                           name="weChatNo"
                                                                                           data-parsley-group="wizard-step-2"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-required-message="请填写银行账号,支付宝,微信,其他任意一个"
                                                                                           data-parsley-unrequiredcompany="true"
                                                                                           data-parsley-unrequiredcompany-message="请填写银行账号,支付宝,微信,其他任意一个"
                                                                                           data-parsley-wechatno="true"
                                                                                           data-parsley-wechatno-message="微信账号填写有误,请重新填写"
                                                                                           data-parsley-maxlength="20"
                                                                                           data-parsley-maxlength-message="微信账号最长为20位"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">其它：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           id="companyremark"
                                                                                           name="remark"
                                                                                             maxlength="100"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-required-message="请填写支付宝,微信,其他任意一个"
                                                                                           data-parsley-unrequiredcompany="true"
                                                                                           data-parsley-unrequiredcompany-message="请填写支付宝,微信,其他任意一个"  data-parsley-group="wizard-step-2" />
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">系统登录名：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="jobNumber"
                                                                                           maxlength="20"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-jobnumber="true"
                                                                                           data-parsley-jobnumber-message="系统登录名填写有误,请重新填写"
                                                                                           data-parsley-only="true"
                                                                                           id="jobNumber"
                                                                                           data-parsley-only-message="该系统登录名已被使用"
                                                                                           data-parsley-required-message="请输入系统登录名"
                                                                                           data-parsley-minlength="6"
                                                                                           data-parsley-minlength-message="系统登录名最短为6位"
                                                                                           data-parsley-maxlength="20"
                                                                                           data-parsley-maxlength-message="系统登录名最长为20位"
                                                                                           data-parsley-group="wizard-step-2"
                                                                                           required/>
                                                                                </div>
                                                                            </div>
                                                                        </fieldset>
                                                                    </div>
                                                                    <!-- end wizard step-2 -->
                                                                    <!-- begin wizard step-3 -->
                                                                    <div class="wizard-step-3" class="formFile">
                                                                        <div class="form-group">
                                                                            <label class="col-md-4 control-label"><strong>附件名</strong></label>
                                                                            <div class="col-md-4">
                                                                                <label class="col-md-3 control-label"><strong>文件</strong></label>
                                                                            </div>
                                                                            <div class="col-md-4">
                                                                                <label class="col-md-3 control-label"><strong>操作</strong></label>
                                                                            </div>
                                                                        </div>
                                                                        <fieldset>

                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">营业执照：</label>
                                                                                <div class="col-md-9">
                                                                                    <input name="businessLicenseFile"
                                                                                           type="file"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-required-message="请上传营业执照"
                                                                                           data-parsley-group="wizard-step-3"
                                                                                           required
                                                                                           data-parsley-filetype="true"
                                                                                           data-parsley-filetype-message="附件格式错误,请重新上传">
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">行业许可证: </label>
                                                                                <div class="col-md-9">
                                                                                    <input name="industryLicenseFile"
                                                                                           type="file"
                                                                                           data-parsley-group="wizard-step-3"
                                                                                           data-parsley-filetype="true"
                                                                                           data-parsley-filetype-message="附件格式错误,请重新上传">
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">法人身份证：</label>
                                                                                <div class="col-md-9">
                                                                                    <input name="legalPersonFile"
                                                                                           type="file" multiple
                                                                                           data-parsley-group="wizard-step-3"
                                                                                           data-parsley-filetype="true"
                                                                                           data-parsley-filetype-message="附件格式错误,请重新上传">
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">高管身份证：</label>
                                                                                <div class="col-md-9">
                                                                                    <input name="seniorManagerFile"
                                                                                           type="file" multiple
                                                                                           data-parsley-group="wizard-step-3"
                                                                                           data-parsley-filetype="true"
                                                                                           data-parsley-filetype-message="附件格式错误,请重新上传">
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">实际控制人身份证：</label>
                                                                                <div class="col-md-9">
                                                                                    <input name="actualControllerFile"
                                                                                           type="file" multiple
                                                                                           data-parsley-group="wizard-step-3"
                                                                                           data-parsley-filetype="true"
                                                                                           data-parsley-filetype-message="附件格式错误,请重新上传">
                                                                                </div>
                                                                            </div>


                                                                            <div class="form-group">
                                                                                <%-- <label class="col-md-3 control-label">自定义附件名称：</label>--%>
                                                                                <input type="text"
                                                                                       class="col-md-3 control-label"
                                                                                       name="alias"
                                                                                       style="width: 100%;"
                                                                                       placeholder="自定义附件名称222"/>
                                                                                <div class="col-md-9">
                                                                                    <input name="file" type="file"
                                                                                           data-parsley-group="wizard-step-3"
                                                                                           data-parsley-filetype="true"
                                                                                           data-parsley-filetype-message="附件格式错误,请重新上传">
                                                                                </div>
                                                                            </div>


                                                                            <div id="addFile1" class="selectWrap"
                                                                                 style="display:none">
                                                                                <div class="form-group">
                                                                                    <%-- <label class="col-md-3 control-label">自定义附件名称：</label>--%>
                                                                                    <input type="text"
                                                                                           class="col-md-3 control-label"
                                                                                           style="width: 100%;"
                                                                                           name="alias"
                                                                                           placeholder="自定义附件名称333"
                                                                                    />
                                                                                    <div class="col-md-9">
                                                                                        <input type="hidden"
                                                                                               name="fileType"
                                                                                               value="6">
                                                                                        <input name="file" type="file"
                                                                                               data-parsley-group="wizard-step-3"
                                                                                               data-parsley-filetype="true"
                                                                                               data-parsley-filetype-message="附件格式错误,请重新上传">
                                                                                    </div>
                                                                                </div>
                                                                                <a href="javascript:;"
                                                                                   onclick="delFile()" class="delFile">删除</a>
                                                                            </div>
                                                                            <div class="form-group" id="fileAdd">
                                                                                <label class="col-md-3 control-label"></label>
                                                                                <div class="col-md-9">
                                                                                    <a class="btn btn-success"
                                                                                       id="addFile"> + 添加附件</a>
                                                                                </div>
                                                                            </div>
                                                                            <!-- begin row -->
                                                                            <%--<div class="row">
                                                                                <!-- begin col-4 -->
                                                                                <div class="col-md-4">
                                                                                    <div class="form-group">
                                                                                        <label>Username</label>
                                                                                        <div class="controls">
                                                                                            <input type="text" name="username" placeholder="johnsmithy" class="form-control" data-parsley-group="wizard-step-3" required />
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                                <!-- end col-4 -->
                                                                                <!-- begin col-4 -->
                                                                                <div class="col-md-4">
                                                                                    <div class="form-group">
                                                                                        <label>Pasword</label>
                                                                                        <div class="controls">
                                                                                            <input type="password" name="password" placeholder="Your password" class="form-control" data-parsley-group="wizard-step-3" required />
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                                <!-- end col-4 -->
                                                                                <!-- begin col-4 -->
                                                                                <div class="col-md-4">
                                                                                    <div class="form-group">
                                                                                        <label>Confirm Pasword</label>
                                                                                        <div class="controls">
                                                                                            <input type="password" name="password2" placeholder="Confirmed password" class="form-control" />
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                                <!-- end col-6 -->
                                                                            </div>--%>
                                                                            <!-- end row -->
                                                                        </fieldset>
                                                                    </div>
                                                                    <!-- end wizard step-3 -->
                                                                    <!-- begin wizard step-4 -->
                                                                    <div>
                                                                        <%--<div class="jumbotron m-b-0 text-center">
                                                                            <h1>编辑完成</h1>
                                                                            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat commodo porttitor. Vivamus eleifend, arcu in tincidunt semper, lorem odio molestie lacus, sed malesuada est lacus ac ligula. Aliquam bibendum felis id purus ullamcorper, quis luctus leo sollicitudin. </p>
                                                                            <p><a class="btn btn-success btn-lg"  role="button">提交</a> <a class="btn btn-success btn-lg" role="button">取消</a></p>
                                                                        </div>--%>
                                                                        <div class="jumbotron m-b-0 text-center">
                                                                            <i class="fa fa-2x fa-check-circle-o fa-4x text-warning"></i>
                                                                            <p class="h2">编辑完成</p>
                                                                            <button type="submit"
                                                                                    class="btn btn-primary btn-lg">提交
                                                                            </button>
                                                                            <button type="button"
                                                                                    class="btn btn-default btn-lg">取消
                                                                            </button>
                                                                        </div>
                                                                    </div>
                                                                    <!-- end wizard step-4 -->
                                                                </div>
                                                                <div class="form-group">
                                                                    <label class="col-md-3 control-label">业务员：</label>
                                                                    <div class="col-md-9" style="width: 300px;">
                                                                        <%--  <input type="text" class="form-control"  />--%>
                                                                        <input type="hidden" class="form-control"
                                                                               id="userName" name="userName"
                                                                               value="${channel.masterUser.realName}">
                                                                        <select class="form-control" id="userId"
                                                                                name="masterUserId"
                                                                                onchange="setName();" placeholder="业务员"
                                                                                data-parsley-required="true"
                                                                                data-parsley-required-message="请选择业务员">
                                                                            <option value="">请选择</option>
                                                                            <c:forEach items="${list}" var="us">
                                                                                <option value="${us.tid}"<c:if
                                                                                        test="${ us.tid == channel.masterUserId}"> selected="selected" </c:if>>${us.username}</option>
                                                                            </c:forEach>
                                                                        </select>
                                                                    </div>
                                                                </div>
                                                            </form>
                                                        </div>
                                                    </section>
                                                </div>


                                                <div id="subTab2" class="tab-pane fade">
                                                    <section>
                                                        <div>
                                                            <form action="/channel/saveChannel" method="POST"
                                                                  data-parsley-validate="true" name="form-wizard1"
                                                                  enctype="multipart/form-data" class="form-horizontal" id="form2">
                                                                <input type="hidden" value="1" name="type">
                                                                <div id="wizard2">
                                                                    <ol>
                                                                        <li>
                                                                            个人信息
                                                                            <small></small>
                                                                        </li>
                                                                        <li>
                                                                            账户信息
                                                                            <small></small>
                                                                        </li>
                                                                        <li>
                                                                            附件
                                                                            <small></small>
                                                                        </li>
                                                                        <li>
                                                                            完成
                                                                            <small></small>
                                                                        </li>
                                                                    </ol>
                                                                    <!-- begin wizard step-1 -->
                                                                    <div class="wizard-step-1">
                                                                        <fieldset>
                                                                            <%--<legend class="pull-left width-full">Identification</legend>--%>
                                                                            <!-- begin row -->
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">姓名：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="contact.name"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-legalpersonname="true"
                                                                                           data-parsley-group="wizard-step-1"
                                                                                           required
                                                                                           data-parsley-required-message="请输入姓名"
                                                                                           data-parsley-legalpersonname-message="姓名填写有误,请重新填写"
                                                                                           data-parsley-maxlength="24"
                                                                                           maxlength="24"
                                                                                           data-parsley-maxlength-message="姓名最长为24个字符"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">身份证号：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="contact.idNo"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-legalpersonidno="true"
                                                                                           data-parsley-group="wizard-step-1"
                                                                                           required
                                                                                           data-parsley-required-message="请输入身份证号"
                                                                                           data-parsley-legalpersonidno-message="身份证号填写有误,请重新填写"
                                                                                           data-parsley-maxlength="18"
                                                                                           maxlength="18"
                                                                                           data-parsley-maxlength-message="身份证号最长为18位"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">工作单位：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="contact.companyName"
                                                                                           maxlength="30"
                                                                                           data-parsley-group="wizard-step-1"
                                                                                           data-parsley-contactcompanyname="true"
                                                                                           data-parsley-contactcompanyname-message="工作单位填写有误,请重新填写"
                                                                                           />
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">入职时间：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control selectData"
                                                                                           name="contact.entryDate"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">家庭住址：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="contact.homeAddress"
                                                                                           maxlength="50"
                                                                                           data-parsley-homeaddress="true"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-required-message="请输入家庭住址"
                                                                                           data-parsley-homeaddress-message="家庭住址填写有误,请重新填写"
                                                                                           data-parsley-group="wizard-step-1"
                                                                                           required/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">联系电话：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="contact.telephone"
                                                                                           maxlength="13"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-telephone="true"
                                                                                           data-parsley-telephone-message="电话号码填写有误,请重新填写"
                                                                                           data-parsley-required-message="请输入联系电话"
                                                                                           data-parsley-maxlength="13"
                                                                                           data-parsley-maxlength-message="联系电话最长为13位"
                                                                                           data-parsley-group="wizard-step-1"
                                                                                           required/>
                                                                                </div>
                                                                            </div>
                                                                        </fieldset>
                                                                    </div>
                                                                    <!-- end wizard step-1 -->
                                                                    <!-- begin wizard step-2 -->
                                                                    <div class="wizard-step-2">
                                                                        <fieldset>
                                                                            <%--<legend class="pull-left width-full">Member Information</legend>--%>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">账户开户名：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="accountName"
                                                                                           maxlength="20"
                                                                                           data-parsley-accountname="true"
                                                                                           data-parsley-accountname-message="账户开户名填写有误,请重新填写"
                                                                                           data-parsley-maxlength="20"
                                                                                           data-parsley-maxlength-message="账户开户名最长为20个字符"
                                                                                           data-parsley-group="wizard-step-2"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">银行账号：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           id="accountno"
                                                                                           name="accountNo"
                                                                                           maxlength="20"
                                                                                           data-parsley-accountno="true"
                                                                                           data-parsley-accountno-message="银行账号填写有误,请重新填写"
                                                                                           data-parsley-minlength="16"
                                                                                           data-parsley-minlength-message="银行账号最短为16位"
                                                                                           data-parsley-maxlength="20"
                                                                                           data-parsley-maxlength-message="银行账号最长为20位"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-required-message="请填写银行账号,支付宝,微信,其他任意一个"
                                                                                           data-parsley-unrequired="true"
                                                                                           data-parsley-unrequired-message="请填写银行账号,支付宝,微信,其他任意一个"
                                                                                           data-parsley-group="wizard-step-2"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">所属银行：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           maxlength="20"
                                                                                           name="bankName"
                                                                                           data-parsley-bankname="true"
                                                                                           data-parsley-maxlength="20"
                                                                                           data-parsley-bankname-message="所属银行填写有误,请重新填写"
                                                                                           data-parsley-maxlength-message="所属银行最长为20个字符"
                                                                                           data-parsley-group="wizard-step-2"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">开户支行：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="bankBranchName"
                                                                                           maxlength="50"
                                                                                           data-parsley-maxlength="50"
                                                                                           data-parsley-maxlength-message="开户支行最长为50位"
                                                                                           data-parsley-group="wizard-step-2"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">支付宝账号：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           id="alipayno"
                                                                                           name="alipayNo" maxlength="20"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-required-message="请填写银行账号,支付宝,微信,其他任意一个"
                                                                                           data-parsley-unrequired="true"
                                                                                           data-parsley-unrequired-message="请填写银行账号,支付宝,微信,其他任意一个"
                                                                                           data-parsley-alipayno="true"
                                                                                           data-parsley-alipayno-message="支付宝账号填写有误,请重新填写"
                                                                                           data-parsley-group="wizard-step-2" />
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">微信账号：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           maxlength="20"
                                                                                           id="wechatno"
                                                                                           name="weChatNo"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-required-message="请填写银行账号,支付宝,微信,其他任意一个"
                                                                                           data-parsley-unrequired="true"
                                                                                           data-parsley-unrequired-message="请填写银行账号,支付宝,微信,其他任意一个"
                                                                                           data-parsley-wechatno="true"
                                                                                           data-parsley-wechatno-message="微信账号填写有误,请重新填写"
                                                                                           data-parsley-minlength="6"
                                                                                           data-parsley-minlength-message="微信账号最短为6位"
                                                                                           data-parsley-maxlength="20"
                                                                                           data-parsley-maxlength-message="微信账号最长为20位"
                                                                                           data-parsley-group="wizard-step-2"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">其它：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           id="remark"
                                                                                           name="remark" maxlength="100"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-required-message="请填写支付宝,微信,其他任意一个"
                                                                                           data-parsley-unrequired="true"
                                                                                           data-parsley-unrequired-message="请填写支付宝,微信,其他任意一个"  data-parsley-group="wizard-step-2"/>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">系统登录名：</label>
                                                                                <div class="col-md-9">
                                                                                    <input type="text"
                                                                                           class="form-control"
                                                                                           name="jobNumber"
                                                                                           maxlength="20"
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-only="true"
                                                                                           data-parsley-jobnumber="true"
                                                                                           data-parsley-jobnumber-message="系统登录名填写有误,请重新填写"
                                                                                           data-parsley-only-message="该系统登录名已被使用"
                                                                                           data-parsley-required-message="请输入系统登录名"
                                                                                           data-parsley-minlength="6"
                                                                                           data-parsley-minlength-message="系统登录名最短为6位"
                                                                                           data-parsley-maxlength="20"
                                                                                           data-parsley-maxlength-message="系统登录名最长为20位"
                                                                                           data-parsley-group="wizard-step-2"
                                                                                           required/>
                                                                                </div>
                                                                            </div>


                                                                        </fieldset>
                                                                    </div>
                                                                    <!-- end wizard step-2 -->
                                                                    <!-- begin wizard step-3 -->
                                                                    <div class="wizard-step-3">
                                                                        <fieldset>
                                                                            <div class="form-group">
                                                                                <label class="col-md-4 control-label"><strong>附件名</strong></label>
                                                                                <div class="col-md-4">
                                                                                    <label class="col-md-3 control-label"><strong>文件</strong></label>
                                                                                </div>
             2                                                                   <div class="col-md-4">
                                                                                    <label class="col-md-3 control-label"><strong>操作</strong></label>
                                                                                </div>
                                                                            </div>

                                                                            <div class="form-group">
                                                                                <label class="col-md-3 control-label">身份证复印件：</label>
                                                                                <div class="col-md-9">
                                                                                    <input name="contactsFile"
                                                                                           type="file" multiple
                                                                                           data-parsley-required="true"
                                                                                           data-parsley-filetype="true"
                                                                                           data-parsley-group="wizard-step-3"
                                                                                           required
                                                                                           data-parsley-required-message="请上传身份证复印件"
                                                                                           data-parsley-filetype-message="附件格式错误,请重新上传">
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group"
                                                                                 style="display:none">
                                                                                <label class="col-md-3 control-label">营业执照：</label>
                                                                                <div class="col-md-9">
                                                                                    <input name="businessLicenseFile"
                                                                                           type="file"
                                                                                           data-parsley-filetype="true"
                                                                                           data-parsley-filetype-message="附件格式错误,请重新上传"
                                                                                           data-parsley-group="wizard-step-3">
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group"
                                                                                 style="display:none">
                                                                                <label class="col-md-3 control-label">行业许可证：</label>
                                                                                <div class="col-md-9">
                                                                                    <input name="industryLicenseFile"
                                                                                           type="file"
                                                                                           data-parsley-filetype="true"
                                                                                           data-parsley-filetype-message="附件格式错误,请重新上传"
                                                                                           data-parsley-group="wizard-step-3">
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group"
                                                                                 style="display:none">
                                                                                <label class="col-md-3 control-label">法人身份证：</label>
                                                                                <div class="col-md-9">
                                                                                    <input name="legalPersonFile"
                                                                                           type="file"
                                                                                           data-parsley-filetype="true"
                                                                                           data-parsley-filetype-message="附件格式错误,请重新上传"
                                                                                           data-parsley-group="wizard-step-3" multiple>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group"
                                                                                 style="display:none">
                                                                                <label class="col-md-3 control-label">高管身份证：</label>
                                                                                <div class="col-md-9">
                                                                                    <input name="seniorManagerFile"
                                                                                           type="file"
                                                                                           data-parsley-filetype="true"
                                                                                           data-parsley-filetype-message="附件格式错误,请重新上传"
                                                                                           data-parsley-group="wizard-step-3"
                                                                                           multiple>
                                                                                </div>
                                                                            </div>
                                                                            <div class="form-group"
                                                                                 style="display:none">
                                                                                <label class="col-md-3 control-label">实际控制人身份证：</label>
                                                                                <div class="col-md-9">
                                                                                    <input name="actualControllerFile"
                                                                                           type="file"
                                                                                           data-parsley-filetype="true"
                                                                                           data-parsley-filetype-message="附件格式错误,请重新上传"
                                                                                           data-parsley-group="wizard-step-3" multiple>
                                                                                </div>
                                                                            </div>
                                                                            <div id="addFile2" class="selectWrap"
                                                                                 style="display:none">
                                                                                <div class="form-group">
                                                                                    <%-- <label class="col-md-3 control-label">自定义附件名称：</label>--%>
                                                                                    <input type="text"
                                                                                           class="col-md-3 control-label"
                                                                                           style="width: 100%"                                                                                           name="alias"
                                                                                           placeholder="自定义附件名1111称"/>
                                                                                    <div class="col-md-9">
                                                                                        <input type="hidden"
                                                                                               name="fileType"
                                                                                               value="6">
                                                                                        <input name="file" type="file"  data-parsley-filetype="true"
                                                                                               data-parsley-filetype-message="附件格式错误,请重新上传"
                                                                                               data-parsley-group="wizard-step-3" >
                                                                                    </div>
                                                                                </div>
                                                                                <a href="javascript:;"
                                                                                   onclick="delFile()" class="delFile">删除</a>
                                                                            </div>
                                                                            <div class="form-group" id="fileAdd2">
                                                                                <label class="col-md-3 control-label"></label>
                                                                                <div class="col-md-9">
                                                                                    <a class="btn btn-success"
                                                                                       id="addFiles2"> + 添加附件</a>
                                                                                </div>
                                                                            </div>


                                                                            <!-- begin row -->
                                                                            <%--<div class="row">
                                                                                <!-- begin col-4 -->
                                                                                <div class="col-md-4">
                                                                                    <div class="form-group">
                                                                                        <label>Username</label>
                                                                                        <div class="controls">
                                                                                            <input type="text" name="username" placeholder="johnsmithy" class="form-control" data-parsley-group="wizard-step-3" required />
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                                <!-- end col-4 -->
                                                                                <!-- begin col-4 -->
                                                                                <div class="col-md-4">
                                                                                    <div class="form-group">
                                                                                        <label>Pasword</label>
                                                                                        <div class="controls">
                                                                                            <input type="password" name="password" placeholder="Your password" class="form-control" data-parsley-group="wizard-step-3" required />
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                                <!-- end col-4 -->
                                                                                <!-- begin col-4 -->
                                                                                <div class="col-md-4">
                                                                                    <div class="form-group">
                                                                                        <label>Confirm Pasword</label>
                                                                                        <div class="controls">
                                                                                            <input type="password" name="password2" placeholder="Confirmed password" class="form-control" />
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                                <!-- end col-6 -->
                                                                            </div>--%>
                                                                            <!-- end row -->
                                                                        </fieldset>
                                                                    </div>
                                                                    <!-- end wizard step-3 -->
                                                                    <!-- begin wizard step-4 -->
                                                                    <div>
                                                                        <%--<div class="jumbotron m-b-0 text-center">
                                                                            <h1>编辑完成</h1>
                                                                            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat commodo porttitor. Vivamus eleifend, arcu in tincidunt semper, lorem odio molestie lacus, sed malesuada est lacus ac ligula. Aliquam bibendum felis id purus ullamcorper, quis luctus leo sollicitudin. </p>
                                                                            <p><a class="btn btn-success btn-lg"  role="button">提交</a> <a class="btn btn-success btn-lg" role="button">取消</a></p>
                                                                        </div>--%>
                                                                        <div class="jumbotron m-b-0 text-center">
                                                                            <i class="fa fa-2x fa-check-circle-o fa-4x text-warning"></i>
                                                                            <p class="h2">编辑完成</p>
                                                                            <button type="submit"
                                                                                    class="btn btn-primary btn-lg">提交
                                                                            </button>
                                                                            <button type="button"
                                                                                    class="btn btn-default btn-lg">取消
                                                                            </button>
                                                                        </div>
                                                                    </div>
                                                                    <!-- end wizard step-4 -->
                                                                </div>
                                                                <div class="form-group">
                                                                    <label class="col-md-3 control-label">业务员：</label>
                                                                    <div class="col-md-9" style="width: 300px;">
                                                                        <%--  <input type="text" class="form-control"  />--%>
                                                                        <input type="hidden" class="form-control"
                                                                               id="userName" name="userName"
                                                                               value="${channel.masterUser.realName}">
                                                                        <select class="form-control" id="userId"
                                                                                name="masterUserId"
                                                                                onchange="setName();" placeholder="业务员"
                                                                                data-parsley-required="true"
                                                                                data-parsley-required-message="请选择业务员">
                                                                            <option value="">请选择</option>
                                                                            <c:forEach items="${list}" var="us">
                                                                                <option value="${us.tid}"<c:if
                                                                                        test="${ us.tid == channel.masterUserId}"> selected="selected" </c:if>>${us.username}</option>
                                                                            </c:forEach>
                                                                        </select>
                                                                    </div>
                                                                </div>
                                                            </form>
                                                        </div>
                                                    </section>
                                                </div>

                                            </div>
                                        </div>
                                    </section>

                                </div>
                                <div id="tab4" class="tab-pane fade">
                                    <section class="pad-top-10 pad-bottom-20">
                                        <ul id="tab4ul" class="nav nav-pills pad-bottom-10">
                                            <li><a href="#tt1" data-toggle="tab">公司工商信息</a></li>
                                            <li><a href="#tt2" data-toggle="tab">账户信息</a></li>
                                            <li><a href="#tt3" data-toggle="tab">授信信息</a></li>
                                            <li><a href="#tt4" data-toggle="tab">保证金信息</a></li>
                                            <li><a href="#tt5" data-toggle="tab">垫资授信申请</a></li>
                                            <li><a href="#tt6" data-toggle="tab">附件</a></li>
                                            <li><a href="#tt7" data-toggle="tab">风控报告</a></li>
                                        </ul>
                                        <form id="channelHandleForm" action="${ctx}/channel/handle" method="POST"
                                              data-parsley-validate="true" class="form-horizontal "
                                              enctype="multipart/form-data">
                                            <div class="form-wrap mar-bottom-0">
                                                <div class="tab-content">
                                                    <div id="tt1" class="tab-pane fade">
                                                        <div class="form-horizontal">
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">注册名称：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">企业信用统一代码：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">注册时间：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">营业期限：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">法人姓名：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">法人身份证号：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">法人手机号：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group" id="memberCloneDiv">
                                                                <label class="col-sm-2 control-label"></label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">公司联系人：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">公司联系电话：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div id="tt2" class="tab-pane fade">
                                                        <div class="form-horizontal">
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">账户开户名：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">银行账号：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">所属银行：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">开户支行：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">支付宝：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">微信：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">其他：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div id="tt3" class="tab-pane fade">
                                                        <div class="form-horizontal">
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">授信额度（万元）：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">已使用额度（万元）：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">授信周期：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <table class="table table-bordered">
                                                            <thead>
                                                            <tr>
                                                                <th>编号</th>
                                                                <th>授信周期</th>
                                                                <th>授信额度</th>
                                                                <th>使用额度</th>
                                                            </tr>
                                                            </thead>
                                                        </table>
                                                    </div>
                                                    <div id="tt4" class="tab-pane fade">
                                                        <div class="form-horizontal">
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">应缴保证金（元）：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-sm-2 control-label">剩余保证金（元）：</label>
                                                                <div class="col-sm-10">
                                                                    <p class="form-control-static"></p>
                                                                </div>
                                                            </div>

                                                        </div>
                                                        <table class="table table-bordered">
                                                            <thead>
                                                            <tr>
                                                                <th>日期</th>
                                                                <th>操作</th>
                                                                <th>金额（元）</th>
                                                                <th>剩余保证金（元）</th>
                                                                <th>备注</th>
                                                            </tr>
                                                            </thead>

                                                        </table>
                                                    </div>
                                                    <div id="tt5" class="tab-pane fade">

                                                        <table class="table table-bordered hidden">
                                                            <tbody>
                                                            <tr>
                                                                <td>实际控制人姓名：</td>
                                                                <td></td>
                                                            </tr>
                                                            <tr>
                                                                <td>实际控制人身份证号：</td>
                                                                <td></td>
                                                            </tr>
                                                            <tr>
                                                                <td>实际控制人手机号：</td>
                                                                <td></td>
                                                            </tr>
                                                            <tr id="creditApplySeniorManagerTr">
                                                                <td></td>
                                                                <td></td>
                                                            </tr>
                                                            <tr>
                                                                <td>申请授信金额（万元）：</td>
                                                                <td></td>
                                                            </tr>
                                                            <tr>
                                                                <td>申请授信期限（月）：</td>
                                                                <td></td>
                                                            </tr>
                                                            </tbody>
                                                        </table>

                                                        <fieldset id="creditApplyFieldSet">
                                                            <div class="form-group">
                                                                <label class="col-md-3 control-label">实际控制人姓名：</label>
                                                                <div class="col-md-9">
                                                                    <input type="text" name="actualController.name"
                                                                           class="form-control"
                                                                           
                                                                           data-parsley-required="true"
                                                                           data-parsley-required-message="请填写实际控制人姓名"/>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-md-3 control-label">实际控制人身份证：</label>
                                                                <div class="col-md-9">
                                                                    <input type="text" name="actualController.idNo"
                                                                           class="form-control"
                                                                           
                                                                           data-parsley-required="true"
                                                                           data-parsley-required-message="请填写实际控制人身份证"
                                                                           data-parsley-legalpersonidno="true"
                                                                           data-parsley-legalpersonidno-message="请填写合法的实际控制人身份证"/>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-md-3 control-label">实际控制人手机：</label>
                                                                <div class="col-md-9">
                                                                    <input type="text" name="actualController.mobile"
                                                                           class="form-control"
                                                                           
                                                                           data-parsley-required="true"
                                                                           data-parsley-required-message="请填写实际控制人手机号"/>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-md-3 control-label">高管姓名：</label>
                                                                <div class="col-md-9">
                                                                    <input type="text" name="seniorManagerList[0].name"
                                                                           class="form-control"
                                                                           
                                                                           data-parsley-required="true"
                                                                           data-parsley-required-message="请填写高管姓名"/>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-md-3 control-label">高管身份证：</label>
                                                                <div class="col-md-9">
                                                                    <input type="text" name="seniorManagerList[0].idNo"
                                                                           class="form-control"
                                                                           
                                                                           data-parsley-required="true"
                                                                           data-parsley-required-message="请填写高管身份证"
                                                                           data-parsley-legalpersonidno="true"
                                                                           data-parsley-legalpersonidno-message="请填写合法的高管身份证"/>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-md-3 control-label">高管手机：</label>
                                                                <div class="col-md-9">
                                                                    <input type="text"
                                                                           name="seniorManagerList[0].mobile"
                                                                           class="form-control"
                                                                           
                                                                           data-parsley-required="true"
                                                                           data-parsley-required-message="请填写高管手机号"/>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-md-3 control-label"></label>
                                                                <div class="col-md-9">
                                                                    <a class="btn btn-primary"
                                                                       id="moreSeniorManagerBtn"> + 更多高管</a>
                                                                </div>
                                                            </div>
                                                            <div id="seniorManagerDiv" class="seniorManagerDiv hidden">
                                                                <div class="form-group">
                                                                    <label class="col-md-3 control-label">高管姓名：</label>
                                                                    <div class="col-md-9">
                                                                        <input type="text" class="form-control"
                                                                               />
                                                                    </div>
                                                                </div>
                                                                <div class="form-group">
                                                                    <label class="col-md-3 control-label">高管身份证：</label>
                                                                    <div class="col-md-9">
                                                                        <input type="text" class="form-control"
                                                                               />
                                                                    </div>
                                                                </div>
                                                                <div class="form-group">
                                                                    <label class="col-md-3 control-label">高管手机：</label>
                                                                    <div class="col-md-9">
                                                                        <input type="text" class="form-control"
                                                                               />
                                                                    </div>
                                                                </div>
                                                                <div class="form-group">
                                                                    <label class="col-md-3 control-label"></label>
                                                                    <div class="col-md-9">
                                                                        <a class="btn btn-cancle"
                                                                           onclick="deleteSeniorManagerDiv(this)"> -
                                                                            删除</a>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-md-3 control-label">申请授信金额（万元）：</label>
                                                                <div class="col-md-9">
                                                                    <input type="text" name="applyAmount"
                                                                           class="form-control"
                                                                           
                                                                           data-parsley-required="true"
                                                                           data-parsley-required-message="请填写申请授信金额"/>
                                                                </div>
                                                            </div>
                                                            <div class="form-group">
                                                                <label class="col-md-3 control-label">申请授信期限：</label>
                                                                <div class="col-md-9">
                                                                    <div class="radio">
                                                                        <label>
                                                                            <input type="radio" name="applyPeriod"
                                                                                   value="3" checked="checked"/>
                                                                            3个月
                                                                        </label>
                                                                    </div>
                                                                    <div class="radio">
                                                                        <label>
                                                                            <input type="radio" name="applyPeriod"
                                                                                   value="6"/>
                                                                            6个月
                                                                        </label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                        </fieldset>
                                                    </div>
                                                    <div id="tt6" class="tab-pane fade">
                                                        <div id="attachmentEditDiv">
                                                            <div class="form-group">
                                                                <label class="col-md-4 control-label"><strong>附件名</strong></label>
                                                                <div class="col-md-4">
                                                                    <label class="col-md-3 control-label"><strong>文件</strong></label>
                                                                </div>
                                                            </div>
                                                            <fieldset>

                                                                <div class="form-group">
                                                                    <label class="col-md-3 control-label">营业执照：</label>
                                                                    <div class="col-md-3">
                                                                        <p class="form-control-static">
                                                                            <input name="businessLicenseFile" type="file"
                                                                               data-parsley-required="true"
                                                                               data-parsley-required-message="请上传营业执照">
                                                                        </p>
                                                                    </div>

                                                                </div>
                                                                <div class="form-group">
                                                                    <label class="col-md-3 control-label">行业许可证：</label>
                                                                    <div class="col-md-3">
                                                                        <p class="form-control-static">
                                                                            <input name="industryLicenseFile" type="file"
                                                                               data-parsley-required="true"
                                                                               data-parsley-required-message="请上传行业许可证">
                                                                        </p>
                                                                    </div>

                                                                </div>
                                                                <div class="form-group">
                                                                    <label class="col-md-3 control-label">法人身份证：</label>
                                                                    <div class="col-md-3">
                                                                        <p class="form-control-static">
                                                                            <input name="legalPersonFile" type="file"
                                                                               multiple
                                                                               data-parsley-required="true"
                                                                               data-parsley-required-message="请上传法人身份证">
                                                                        </p>
                                                                    </div>

                                                                </div>
                                                                <div class="form-group">
                                                                    <label class="col-md-3 control-label">高管身份证：</label>
                                                                    <div class="col-md-3">
                                                                        <p class="form-control-static">
                                                                        <input name="seniorManagerFile" type="file"
                                                                               multiple
                                                                               data-parsley-required="true"
                                                                               data-parsley-required-message="请上传高管身份证">
                                                                        </p>
                                                                    </div>

                                                                </div>
                                                                <div class="form-group">
                                                                    <label class="col-md-3 control-label">实际控制人身份证：</label>
                                                                    <div class="col-md-3">
                                                                        <p class="form-control-static">
                                                                        <input name="actualControllerFile" type="file"
                                                                               multiple
                                                                               data-parsley-required="true"
                                                                               data-parsley-required-message="请上传实际控制人身份证">
                                                                        </p>
                                                                    </div>
                                                                </div>

                                                                <!-- begin row -->
                                                                <!-- end col-4 -->
                                                                <!-- end col-6 -->
                                                                <!-- end row -->
                                                            </fieldset>

                                                        </div>
                                                        <div id="attachmentTableDiv">
                                                            <table class="table table-bordered">
                                                                <thead>
                                                                <tr>
                                                                    <th>附件名</th>
                                                                    <th>文件</th>
                                                                    <th>上传时间</th>
                                                                </tr>
                                                                </thead>
                                                                <tbody>
                                                                <tr id="attachmentTr">
                                                                    <td></td>
                                                                    <td></td>
                                                                    <td></td>
                                                                </tr>

                                                                </tbody>

                                                            </table>
                                                        </div>
                                                    </div>

                                                    <div id="tt7" class="tab-pane fade">
                                                        风控报告对接中
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-md-3 control-label">业务员</label>
                                                    <div class="col-md-9">
                                                        <input type="text" id="masterUserInput" class="form-control"
                                                               readonly/>
                                                    </div>
                                                </div>
                                                <div class="form-group" id="acceptAmountDiv">
                                                    <label class="col-md-3 control-label">授信金额（万元）：</label>
                                                    <div class="col-md-9">
                                                        <input type="text" id="acceptAmountInput" name="acceptAmount"
                                                               class="form-control" 
                                                               data-parsley-required="true"
                                                               data-parsley-required-message="请填写授信金额"/>
                                                    </div>
                                                </div>
                                                <div class="form-group" id="acceptPeriodDiv">
                                                    <label class="col-md-3 control-label">授信期限：</label>
                                                    <div class="col-md-9">
                                                        <div class="radio">
                                                            <label>
                                                                <input type="radio" name="acceptPeriod" value="3"/>
                                                                3个月
                                                            </label>
                                                        </div>
                                                        <div class="radio">
                                                            <label>
                                                                <input type="radio" name="acceptPeriod" value="6"/>
                                                                6个月
                                                            </label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="form-group" id="creditDateDiv">
                                                    <label class="col-md-3 control-label">授信期限</label>
                                                    <div class="col-md-9">
                                                        <div class="col-md-6" style="padding: 0">
                                                            <div class="input-group input-daterange">
                                                                <input type="text" class="form-control datepicker-default"
                                                                       name="startDate" placeholder="Date Start"
                                                                       data-parsley-required="true"
                                                                       data-parsley-required-message="请填写授信期限"/>
                                                                <span class="input-group-addon">至</span>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-6" style="padding: 0;">
                                                            <div class="input-group input-daterange">
                                                                <input type="text" class="form-control datepicker-default"
                                                                       name="endDate" placeholder="Date End"
                                                                       data-parsley-required="true"
                                                                       data-parsley-required-message="请填写授信期限"/>
                                                            </div>
                                                        </div>

                                                    </div>
                                                </div>
                                                <div class="form-group" id="depositAmountDiv">
                                                    <label class="col-md-3 control-label">保证金金额（元）： </label>
                                                    <div class="col-md-9">
                                                        <input type="text" name="depositAmount" class="form-control"
                                                                disabled/>
                                                    </div>
                                                </div>
                                                <div class="form-group" id="expectDepositAmountDiv">
                                                    <label class="col-md-3 control-label">应缴保证金金额（元）：</label>
                                                    <div class="col-md-9">
                                                        <p></p>
                                                    </div>
                                                </div>
                                                <div class="form-group" id="lastDepositAmountDiv">
                                                    <label class="col-md-3 control-label">剩余保证金金额（元）：</label>
                                                    <div class="col-md-9">
                                                        <p></p>
                                                    </div>
                                                </div>
                                                <div class="form-group" id="depositInAmountDiv">
                                                    <label class="col-md-3 control-label">收到保证金（元）：</label>
                                                    <div class="col-md-9">
                                                        <input type="text" name="depositInAmount" class="form-control"
                                                               
                                                               data-parsley-required="true"
                                                               data-parsley-required-message="请填写收到保证金金额"/>
                                                    </div>
                                                </div>
                                                <div class="form-group" id="depositOutAmountDiv">
                                                    <label class="col-md-3 control-label">退回保证金（元）：</label>
                                                    <div class="col-md-9">
                                                        <input type="text" name="depositOutAmount" class="form-control"
                                                               
                                                               data-parsley-required="true"
                                                               data-parsley-required-message="请填写退回保证金金额"/>
                                                    </div>
                                                </div>
                                                <div class="form-group" id="fileUploadDiv">
                                                    <label class="col-md-3 control-label">授信合同</label>
                                                    <div class="col-md-9">
                                                        <input type="file" name="contactsFile" multiple
                                                               data-parsley-required="true"
                                                               data-parsley-required-message="请上传授信合同">
                                                    </div>
                                                </div>
                                                <div class="form-group" id="supplementDepositDiv">
                                                    <label class="col-md-3 control-label">补齐保证金（元）： </label>
                                                    <div class="col-md-9">
                                                        <input type="text" name="supplementDepositAmount"
                                                               class="form-control" 
                                                               data-parsley-required="true"
                                                               data-parsley-required-message="请填写补齐保证金金额"/>
                                                    </div>
                                                </div>


                                                <div class="form-group" id="opinionDiv">
                                                    <label class="col-md-3 control-label">审核意见 / 备注</label>
                                                    <div class="col-md-9">
                                                        <textarea id="opinionTextarea" class="form-control"
                                                                  rows="5" name="opinion"
                                                                  data-parsley-minlength-message="最少4个字符，最多100字符"
                                                                  data-parsley-required="true"
                                                                  data-parsley-required-message="请填写审核意见 / 备注"></textarea>
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-md-3 control-label">&nbsp;</label>
                                                    <div class="col-md-9">
                                                        <a id="passBtn" onclick="auditOperate(1)"
                                                           class="btn btn-primary m-r-5">通过</a>
                                                        <a id="rejectBtn" onclick="auditOperate(2)"
                                                           class="btn btn-default">驳回</a>
                                                        <a id="nextBtn" onclick="" class="btn btn-primary">下一步</a>
                                                        <a id="previousBtn" onclick=""
                                                           class="btn btn-primary">上一步</a>
                                                        <button id="submitBtn" type="submit" class="btn btn-primary">
                                                            提交
                                                        </button>
                                                        <a id="cancelBtn" onclick="" class="btn btn-default">取消</a>

                                                        <%--操作类型：--%><input type="hidden" id="operateTypeInput"
                                                                            name="operateType">
                                                        <%--渠道id：--%><input type="hidden" id="channelIdInput"
                                                                            name="channelId">
                                                        <%--审核结果：--%><input type="hidden" id="auditResultInput"
                                                                            name="auditResult" value="1">
                                                    </div>
                                                </div>



                                                <div>
                                                    <shiro:lacksRole name="渠道">
                                                    <table class="bg-warning">
                                                        <thead>
                                                        <tr>
                                                            <th width="120">操作事项</th>
                                                            <th width="180">操作人</th>
                                                            <th width="200">操作时间</th>
                                                            <th>备注</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>

                                                        <tr id="remarkCloneTr">
                                                            <td></td>
                                                            <td></td>
                                                            <td></td>
                                                            <td></td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                    </shiro:lacksRole>

                                                </div>
                                            </div>
                                        </form>
                                    </section>

                                </div>
                                <div id="tab5" class="tab-pane fade">
                                    <section class="pad-top-10 pad-bottom-20">
                                        <ul id="tab5ul" class="nav nav-pills pad-bottom-10">
                                            <li><a href="#ttt1" data-toggle="tab">个人信息</a></li>
                                            <li><a href="#ttt2" data-toggle="tab">账户信息</a></li>
                                            <li><a href="#ttt3" data-toggle="tab">附件</a></li>
                                        </ul>

                                        <div class="form-wrap mar-bottom-0">
                                            <div class="tab-content">
                                                <div id="ttt1" class="tab-pane fade">
                                                    <div class="form-horizontal">
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">姓名</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">身份证号</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">工作单位</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">入职时间</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">家庭地址</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">联系电话</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">业务员</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="ttt2" class="tab-pane fade">

                                                    <div class="form-horizontal">
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">账户开户名</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">银行账号</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">所属银行</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">开户支行</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">支付宝</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">微信</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">其他</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="ttt3" class="tab-pane fade">


                                                    <div class="form-horizontal">
                                                        <div class="form-group" id="attachmentDiv">
                                                            <label class="col-sm-2 control-label"></label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <form id="personalHandleForm" action="${ctx}/channel/handle"
                                                      method="POST" data-parsley-validate="true" class="form-horizontal"
                                                      enctype="multipart/form-data">
                                                    <div class="form-group">
                                                        <label class="col-md-3 control-label">审核意见</label>
                                                        <div class="col-md-9">
                                                            <textarea class="form-control"
                                                                      rows="5" name="opinion"
                                                                      data-parsley-minlength="4"
                                                                      data-parsley-maxlength="100"
                                                                      data-parsley-minlength-message="最少4个字符，最多100字符"
                                                                      data-parsley-maxlength-message="最少4个字符，最多100字符"
                                                                      data-parsley-required="true"
                                                                      data-parsley-required-message="请填写审核意见 / 备注"></textarea>
                                                        </div>
                                                    </div>

                                                    <div class="form-group">
                                                        <label class="col-md-3 control-label"> &nbsp; </label>
                                                        <div class="col-md-9">
                                                            <a onclick="personalAuditOperate(1)"
                                                               class="btn btn-primary m-r-10">通过</a>
                                                            <a onclick="personalAuditOperate(2)"
                                                               class="btn btn-default">驳回</a>
                                                            <%--操作类型：--%><input type="hidden" id="personalOperateTypeInput"
                                                                                name="operateType" value="4">
                                                            <%--渠道id：--%><input type="hidden" id="personalChannelIdInput"
                                                                                name="channelId">
                                                            <%--审核结果：--%><input type="hidden" id="personalAuditResultInput"
                                                                                name="auditResult" value="1">
                                                        </div>
                                                    </div>

                                                </form>

                                                <div>
                                                    <table class="bg-warning">
                                                        <thead>
                                                        <tr>
                                                            <th>操作事项</th>
                                                            <th>操作人</th>
                                                            <th>操作时间</th>
                                                            <th>备注</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>

                                                        <tr id="personalRemarkCloneTr2">
                                                            <td></td>
                                                            <td></td>
                                                            <td></td>
                                                            <td></td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </section>
                                </div>
                                <div id="tab6" class="tab-pane fade">
                                    <section class="pad-top-10 pad-bottom-20">
                                        <ul id="tab6ul" class="nav nav-pills pad-bottom-10">
                                            <li><a href="#tttt1" data-toggle="tab">个人信息</a></li>
                                            <li><a href="#tttt2" data-toggle="tab">账户信息</a></li>
                                            <li><a href="#tttt3" data-toggle="tab">附件</a></li>
                                        </ul>

                                        <div class="form-wrap mar-bottom-0">
                                            <div class="tab-content">
                                                <div id="tttt1" class="tab-pane fade">
                                                    <div class="form-horizontal">
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">姓名：</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">身份证号：</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">工作单位：</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">入职时间：</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">家庭地址：</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">联系电话：</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">业务员：</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="tttt2" class="tab-pane fade">

                                                    <div class="form-horizontal">
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">账户开户名</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">银行账号</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">所属银行</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">开户支行</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">支付宝</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">微信</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <label class="col-sm-2 control-label">其他</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="tttt3" class="tab-pane fade">

                                                    <div class="form-horizontal">
                                                        <div class="form-group" id="attachmentDiv6">
                                                            <label class="col-sm-2 control-label">账户开户名</label>
                                                            <div class="col-sm-10">
                                                                <p class="form-control-static"></p>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>


                                                <div>
                                                    <shiro:lacksRole name="渠道">
                                                    <table class="bg-warning">
                                                        <thead>
                                                        <tr>
                                                            <th>操作事项</th>
                                                            <th>操作人</th>
                                                            <th>操作时间</th>
                                                            <th>备注</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>

                                                        <tr id="personalRemarkCloneTr">
                                                            <td></td>
                                                            <td></td>
                                                            <td></td>
                                                            <td></td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                    </shiro:lacksRole>
                                                </div>
                                            </div>
                                        </div>
                                    </section>
                                </div>
                                <div id="tab7" class="tab-pane fade">
                                    <iframe width="100%" height="100%" frameborder="0" id="iframe" scrolling="no" src="/ins/order/orderInfoDetail?tid=113"  frameborder="0"></iframe>
                                </div>
                            </div>
                        </div>
                        <%--<shiro:hasPermission name="用户管理-新增">
                            <div class="alert-info fade in">
                                <button type="button" class="btn btn-primary m-l-20 m-t-10 m-b-10" onclick="toadd()">新增</button>
                            </div>
                        </shiro:hasPermission>--%>
                    </section>
                </div>
                <!-- end panel -->
            </div>
            <!-- end col-12 -->
        </div>
        <!-- end row -->
    </div>

    <!-- end #content -->
    <div class="modal fade" id="modal-subInfo">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 class="modal-title">提示</h4>
                </div>
                <div id="showSubInfo" class="modal-body">
                    确认删除？
                </div>
                <div class="modal-footer">
                    <a href="javascript:;" id="subButtonYes" class="btn btn-primary">确定</a>
                    <a href="javascript:;" id="subButtonNo" class="btn btn-default" data-dismiss="modal">取消</a>
                </div>
            </div>
        </div>
    </div>

</div>
<!-- end page container -->
<jsp:include page="../common/footer.jsp"/>

<!-- ================== END PAGE LEVEL JS ================== -->
<script src="${ctx}/static/js/channel/channel_list.js"></script>

<script>
    $(document).ready(function() {
        $('.datepicker-default').datepicker({
            language: 'zh-CN',//显示中文
            format: 'yyyy-mm-dd',//显示格式
            minView: "month",//设置只显示到月份
            initialDate: new Date(),//初始化当前日期
            autoclose: true,//选中自动关闭
            todayBtn: 'linked'//显示今日按钮
        });
        $('.selectpicker').selectpicker({
            style: 'btn-white',
            size: 5
        });
    });
    //时间插件配置
    $(".selectData").datepicker({
        autoclose: true, //自动关闭
        beforeShowDay: $.noop, //在显示日期之前调用的函数
        calendarWeeks: false, //是否显示今年是第几周
        clearBtn: false, //显示清除按钮
        daysOfWeekDisabled: [], //星期几不可选
        endDate: Infinity, //日历结束日期
        forceParse: true, //是否强制转换不符合格式的字符串
        format: 'yyyy-mm-dd', //日期格式
        keyboardNavigation: true, //是否显示箭头导航
        language: "zh-CN", //语言
        minViewMode: 0,
        orientation: "auto", //方向
        rtl: false,
        startDate: -Infinity, //日历开始日期
        startView: 0, //开始显示
        todayBtn: false, //今天按钮
        todayHighlight: true, //今天高亮
        weekStart: 0 //星期几是开始
    });

    function toRefresh(){
        window.location.href="<%=path%>/channel/tolist/C";
    }
    function toRefresh1(){
        window.location.href="<%=path%>/channel/tolist/P";
    }
    $(function(){
        $("#form1").ajaxForm(function(data){
            if(data==true){
                $("#showSubInfo").html(" 提交成功");
                $("#subButtonYes").attr("onclick","toRefresh();");
                $("#modal-subInfo").modal('show');
            }else {
                $("#showSubInfo").html("提交失败");
                $("#subButtonYes").attr("onclick","toRefresh();");
                $("#modal-subInfo").modal('show');
            }
        });
    });

    $(function(){
        $("#form2").ajaxForm(function(data){
            if(data==true){
                $("#showSubInfo").html(" 提交成功");
                $("#subButtonYes").attr("onclick","toRefresh1();");
                $("#modal-subInfo").modal('show');
            }else {
                $("#showSubInfo").html("提交失败");
                $("#subButtonYes").attr("onclick","toRefresh1();");
                $("#modal-subInfo").modal('show');
            }
        });
    });
    //删除附件
    function delFile() {
        if (confirm("确认删除该附件？")) {
            $(document).on('click', '.delFile', function () {
                $(this).closest('.selectWrap').remove();
            })
        }
    }

    // 更多附件，新增附件
    $("#addFile").click(function () {
        var div = $("#addFile1");
        var clone = div.clone().show();
        var fileAdd = $("#fileAdd");
        clone.insertBefore(fileAdd);
    });
    // 更多附件，新增附件
    $("#addFiles2").click(function () {
        var div = $("#addFile2");
        var clone = div.clone().show();
        var fileAdd2 = $("#fileAdd2");
        clone.insertBefore(fileAdd2);
    });

    //去往编辑页面
    function toedit(id) {
        window.location.href = "<%=path%>/sysuser/toedit/" + id;
    }

    //去往新增页面
    function toadd() {
        window.location.href = "<%=path%>/sysuser/toadd";
    }

    function showInfo() {
        $("#showSubInfo").html("确定要提交吗？");
        $("#subButtonYes").attr("onclick", "submitInfos()");
        $("#infoModal").modal('show');
    }

    function submitInfos() {
        $("#subButtonYes").removeAttr("onclick");
        $("#infoModal").modal('hide');
        $("#submitForm").ajaxSubmit({
            type: "POST",
            url: "/channel/save",
            success: function (data) {
                if (data.type == "S") {
                    $("#showSubInfo").html(data.message);
                    $("#subButtonYes").attr("onclick", "reload()");
                    $("#infoModal").modal('show');
                } else {
                    $("#showSubInfo").html(data.message);
                    $("#infoModal").modal('show');
                }
            }
        });
    }

    window.ParsleyValidator.addValidator('only', function (jobNumber) {
        var result = true;
        if (jobNumber != "" && jobNumber != null) {
            $.ajax({
                type: "post",
                url: "<%=path%>/channel/onlyJobNumber",
                async: false,
                data: {jobNumber: jobNumber},
                success: function (msg) {
                    if (msg.success != true) {
                        result = false;
                    }
                }
            });
        }
        return result;
    }, 32);


    $('.table').on('click','.btn-tab4',function () {
        var $title=$(this).text();
        $('#navTab4').removeClass('hidden').trigger('click').text($title);
    })

</script>
</body>
</html>
